#pragma once
#include <qstring.h>
#include <set>
#include <qmutex.h>
#include <qstringlist.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include <qjsonobject.h>
#include <qfile.h>
#include <qdir.h>

class configure
{
	
public:
	configure();
	
	bool init();
	bool WriteConfigure(QString src, QString dst, QString excl, qint64 cycle_time);
	bool ReadConfigure();
	//bool UpdateConfigure();
public:
	std::set<QString> srcFileList;
	std::set<QString> excludeFileList;
	QString dstDir;
	QMutex mutex;
	qint64 minutes;
	qint64 writeSize;
	qint64 backupTimes;
	qint64 monitingNumbers;
	qint64 cycleTime;
};